import {Form} from "@/components/layout/form/form";

export const deviceDetailsForm: Form[] = [{
  label: '基础数据', card: [
    {
      label: '设备名称',
      name: 'deviceName',
      span: 6,
      placeholder: '输入设备名称'
    },
    {
      label: '设备编码',
      name: 'deviceCode',
      span: 6,
      placeholder: '输入设备名称'
    },
    {
      label: 'SN编码',
      name: 'sn',
      span: 6,
      placeholder: '输入设备名称'
    },
    {line: true},
    {
      label: '生命周期状态',
      name: 'status',
      span: 6,
      placeholder: '输入设备名称',
      value: [
        {label: '未开通', value: 0},
        {label: '已开通', value: 1},
        {label: '已停用', value: 2},
        {label: '已回收', value: 3},
        {label: '已报废', value: 4}
      ]
    },
    {
      label: '在离线状态',
      name: 'deviceStatus',
      span: 6,
      placeholder: '输入设备名称',
      value: [{label: '在线', value: 0}, {label: '离线', value: 1}]
    },
    {
      label: '当前状态',
      name: 'bindStatus',
      span: 6,
      placeholder: '输入设备名称',
      value: [{label: '未绑定', value: 0}, {label: '已绑定', value: 1}]
    },
    {line: true},
    {
      label: '最后上线时间',
      name: 'lastRegisterTime',
      span: 6,
      placeholder: '输入设备名称',
      value: 'YYYY-MM-DD HH:mm:ss'
    },
    {
      label: '最后离线时间',
      name: 'lastDataTime',
      span: 6,
      placeholder: '输入设备名称',
      value: 'YYYY-MM-DD HH:mm:ss'
    },
    {line: true},
    {
      label: '创建时间',
      name: 'addTime',
      span: 6,
      placeholder: '输入设备名称',
      value: 'YYYY-MM-DD HH:mm:ss'
    },
    {
      label: '创建人',
      name: 'addUserName',
      span: 6,
      placeholder: '输入设备名称'
    }
  ]
}];